﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;

namespace DelCompanyDal
{
    public class DBO
    {
        public static bool CheckLogin(string conn,out string err)
        {
            err = "";
            SqlConnection sqlconnection = new SqlConnection(conn);
            try
            {
                sqlconnection.Open();
                sqlconnection.Close();
                return true;
            }
            catch(Exception ex)
            {
                err = ex.Message;
                return false;
            }
        }
    }
}
